<?php 

class Admin_Form_SearchUser extends Custom_Form_Abstract{
	
	public function init(){
		
        $this->addElement('text', 'userId', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'User Id',
        	'required'   => false,
        ));
        $this->addElement('text', 'userName', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'Username',
        	'required'   => false,
        ));
        $this->addElement('text', 'firstName', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'First Name',
        	'required'   => false,
        ));
        $this->addElement('text', 'lastName', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'Last Name',
        	'required'   => false,
        ));
        
        $this->addElement('select', 'activeId', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'Active Id',
        	'multiOptions'	=> Doctrine_Core::getTable('Doctrine_Model_Users')->getEnumValues('activeId'),
        	'required'   => false,
        ));
        
        $this->addElement('select', 'role', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'Role',
        	'multiOptions'	=> Doctrine_Core::getTable('Doctrine_Model_Users')->getEnumValues('role'),
        	'required'   => false,
        ));
        
        $this->addElement('select', 'status', array(
        	'decorators'	=>	$this->elementDecorators,
        	'label'		=>	'User Status',
        	'multiOptions'	=> Doctrine_Core::getTable('Doctrine_Model_Users')->getEnumValues('status'),
        	'required'   => false,
        ));
        
        $this->addElement('select', 'resultsPerPage', array(
        	'decorators' => $this->elementDecorators,
            'label'       => 'Results Per Page',
        	'multiOptions'	=> array(
        		10 => '10',
        		25 => '25',
        		50 => '50',
        		100 => '100',
        		250 => '250',
        		500 => '500',
        		1000 => '1000',
        	)
        ));
        $this->addElement('image', 'searchUser', array(
        	'decorators' => $this->buttonDecorators,
        ));
	}
}